import { createReadStream,createWriteStream } from 'fs'

const path = require('path')

// const readUrl = __dirname+'/txt/one.txt'

// const writeUrl = __dirname+'/txt/two.txt'

const read_path = path.join(__dirname,'/txt/one.txt')

const write_path = path.join(__dirname,'/txt/two.txt')

// createReadStream(readUrl).pipe(createWriteStream(writeUrl))
createReadStream(read_path).pipe(createWriteStream(write_path))